import { de } from 'element-plus/es/locale/index.mjs'

export interface LoginFormData {
  username?: string
  password?: string
}
// 登录接口返回的相关类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
// 登录接口返回的数据ts类型
export interface LoginResponseData extends ResponseData {
  data: string
}

// 用户信息返回的数据ts类型
export interface userInfoResponseData extends ResponseData {
  data: {
    router: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}
